#ifndef BUTTONLISTITEM_H_
#define BUTTONLISTITEM_H_

#include <iostream>
#include "SDL/SDL_ttf.h"
#include "../../common/Constantes.h"
#include "listeners/Listener.h"
#include "../../common/utils/Logger.h"
#include "../Parcel.h"
#include "../Event.h"
#include "../WidgetClickeableWithTextAligned.h"

class ButtonListItem: public WidgetClickeableWithTextAligned {

public:
	ButtonListItem (std::string keyValue, std::string path, bool selected, int posX, int posY, Widget* parent);
	ButtonListItem (std::string buttonName, Color color, bool selected, int w, int h, int posX, int posY, Widget* parent);

	virtual void handleEvent(Event event, Parcel* parentParcel);
	virtual void setPressed(bool pressed);
	bool isMouseOver(Event event, Parcel* parentParcel) const;

	std::string getKeyValue() const;
private:
    std::string keyValue;
};

#endif /* BUTTONLISTITEM_H_ */
